require("@nomicfoundation/hardhat-toolbox");

/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
    solidity: "0.8.28",
    networks: {
        hardhat: {
            chainId: 1337
        },
        localhost: {
            url: "http://127.0.0.1:8545"
        },
        // Ganache 配置
        ganache: {
            url: "http://127.0.0.1:8545", // Ganache 默认端口
            chainId: 1337, // Ganache 默认链 ID，根据您的 Ganache 配置调整
            // 如果 Ganache 有账户配置，可以在这里添加私钥
            // accounts: ["你的私钥"]
        }
    },
    paths: {
        sources: "./contracts",
        tests: "./test",
        cache: "./cache",
        artifacts: "./artifacts"
    }
};
